<template>
  <div>
    <h2>属性绑定指令</h2>
    <img v-bind:src="url" alt="" />
    <img :src="url" alt="" />
    <img :src="logo" alt="" />
    <img :src="require('./assets/logo.png')" alt="" />
    <br />
    <input type="text" v-bind:value="uname" />
    <input type="text" :value="uname + '你好'" />
  </div>
</template>

<script>
// import pic from './assets/logo.png'
export default {
  data () {
    return {
      url: 'http://www.itcbc.com:3006/formdata/123.jpg',
      uname: '李四',
      // logo: pic
      logo: require('./assets/logo.png')
    }
  }
}
</script>

<style></style>
